package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.dto.MealVerifyDetailDTO;
import com.ruoyi.system.domain.dto.MealVerifyDetailWrapperDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface MealVerifyDetailMapper {

    /**
     * 场景1：某培训每天早+晚合并
     */
    List<MealVerifyDetailDTO> dailySummary(@Param("trainingName") String trainingName);

    /**
     * 场景2：某培训 + 某餐别 每天
     */
    List<MealVerifyDetailDTO> dailyByMealType(@Param("trainingName") String trainingName,
                                              @Param("mealType")    String mealType);

    /**
     * 场景3：某培训 + 某区县 每天早+晚合并
     */
    List<MealVerifyDetailDTO> dailyByDept(@Param("trainingName") String trainingName,
                                          @Param("dept")        String dept);

    /**
     * 场景4：某培训 + 某区县 + 某餐别 每天
     */
    List<MealVerifyDetailDTO> dailyByDeptAndMeal(@Param("trainingName") String trainingName,
                                                 @Param("dept")        String dept,
                                                 @Param("mealType")    String mealType);
    /**
     * 获取特定培训下的实际部门列表
     */
    List<String> listDeptsByTrainingName(@Param("trainingName") String trainingName);

    List<MealVerifyDetailDTO>  selectMealVerifyDetail(@Param("trainingName") String trainingName,
                                                      @Param("dept")        String dept,
                                                      @Param("mealType")    String mealType);
}